#include <iostream>
#include <vector>
template <typename E>
void printVector(const std::vector<E> &v)
{
    for (const E &e : v)
    {
        std::cout << e << " ";
    }
    std::cout << std::endl;
}

template <typename E>
void print(const E &e)
{
    std::cout << e << std::endl;
}

int main(int argc, char const *argv[])
{
    std::vector<int> v(10, 5);
    printVector(v);

    print(v.size());
    print(v.empty());
    print(v.capacity());

    v.resize(3);
    printVector(v);
    print(v.size());

    v.resize(10);
    printVector(v);
    print(v.size());

    v.resize(11, 99);
    printVector(v);
    print(v.size());

    return 0;
}
